package com.victorvieux.android.web;

import android.view.View;
import android.widget.ImageButton;

import com.victorvieux.android.vlcmote.R;
import com.victorvieux.android.vlcmote.main;
import com.victorvieux.android.web.Communicate;

public class stop implements ImageButton.OnClickListener {
	private ImageButton playpause;
	
	public stop(View pp) {
		playpause = (ImageButton) pp;
	}
	public void onClick(View v) {
		Communicate c = Communicate.getInstance();
		c.send("pl_stop", 0);
		playpause.setBackgroundResource(R.drawable.i_play);
		main.playing = false;
	}
}